﻿<?php
	error_reporting(0);
	session_start();
	
	require_once 'lib/function.php';
	require_once 'page.Class.php';
	
/*  接收参数,此部分不需修改  */

	$sessions=$_SESSION['topsession'];
	
	$start_modified = $_GET['start_modified'];  //查询修改时间开始
	$end_modified = $_GET['end_modified']; //查询修改时间结束
	$status = $_GET['status']; //退款状态
	$buyer_nick = $_GET['buyer_nick']; //买家淘宝昵称
	$type = $_GET['type']; //交易类型列表
  	$page_no = !($_GET['page'])?'1':intval($_GET['page']); //页码
  	$page_size = !($_GET['page_size'])?'20':intval($_GET['page_size']);//每页条数。取值范围:大于零的整数; 默认值:40;最大值: 
	$refund_id = $_GET['refund_id']; //交易ID 
	
/*  以下配置参数根据情况进行修改  */	

	//false为正式测试环境,true为测试环境
	//配置沙箱环境说明：http://open.taobao.com/bbs/read.php?tid=19022	
	$testMode = 'true';
	if ($testMode=='true'){
	   $url = 'http://gw.api.tbsandbox.com/router/rest?';  //沙箱环境提交URL
$sessionurl = 'http://container.api.tbsandbox.com/container?appkey='; //沙箱环境获取SessionKey
	$appKey = '12174182';  
 $appSecret = 'sandbox748150e435fe0cc93686a12d3'; 	

	}else if($testMode=='false'){
	   $url = 'http://gw.api.taobao.com/router/rest?';  //正式环境提交URL
$sessionurl = 'http://container.api.taobao.com/container?appkey='; //正式环境获取SessionKey	   
	$appKey = ''; //填写自己申请的AppKey
 $appSecret = ' '; //填写自己申请的$appSecret
	}		

?>